package cn.bookcycle.panda.userweb.constant;

/**
 * @author Mason
 * @date 2018/2/4
 */
public class URLConstant {
    //public static final String HOST_PORT="http://127.0.0.1:8024";
    public static final String HOST_PORT="http://47.106.122.242:8024";
    //public static final String HOST_PORT="http://192.168.199.114:8024/";

    public static final String GET_AUTHS=URLConstant.HOST_PORT+ "/auths/getAuths";
    public static final String GET_AUTHS_BY_ID=URLConstant.HOST_PORT+ "/auths/getAuthsById";
    public static final String SAVE_AUTHS=URLConstant.HOST_PORT+ "/auths/saveAuths";
    public static final String UPDATE_AUTHS=URLConstant.HOST_PORT+ "/auths/updateAuths";

    public static final String UPDATE_USER=URLConstant.HOST_PORT+ "/user/updateUser";
    public static final String SAVE_USER=URLConstant.HOST_PORT+ "/user/saveUser";
    public static final String GET_USER=URLConstant.HOST_PORT+ "/user/getUser/";
    public static final String GET_USER_BY_USERID=URLConstant.HOST_PORT+ "/user/getUserById/";
    public static final String LIST_USERS=URLConstant.HOST_PORT+ "/user/listUsers";

    /**
     * 文件微服务URL
     */
    public static final String HOST_PORT_FILE="http://47.106.122.242:8032/file/";
    /**1.上传文件*/
    public static final String URL_UPLOAD_FILE= URLConstant.HOST_PORT_FILE+ "uploadFile";
    /**2.下载文件*/
    public static final String URL_GET_AVATAR= URLConstant.HOST_PORT_FILE+ "getFile";
}
